package cn.onecloud.tablet.xiaozhi.model;

/**
 * Created by yin.he on 17-11-16.
 */

public class Desktop extends AbstractDesktop {

    //1, 2 类型有的字段
    private String ip;

    private Integer port;

    private String domain;

    private String userName;

    private String password;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }


    @Override
    public int hashCode() {
        return this.getId().hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return obj != null && obj.getClass().equals(getClass()) && ((Desktop) obj).getId().equals(this.getId());
    }
}
